package bupt.party.online.service;

import java.util.List;
import java.util.Map;

import bupt.party.online.model.Branch;
import bupt.party.online.model.PartyNews;

public interface IPartyNewsService {
	
	public List<PartyNews> getSpiritNews(int pageNow,int pageSize);
	
	public int getResultCountByTag(int tag);
	
	public List<PartyNews> getNewsByCategory(int cateTag,int pageNow,int pageSize);
	
	public PartyNews getNewsById(int id);
	
	public List<PartyNews> getNewsByConditions(Map<String,Object> conditions,int pageNow,int pageSize);
	
	public int getResultCountByConditions(Map<String,Object> conditions);

	public boolean saveOrUpdateSpiritNews(PartyNews news);
	
	public boolean deleteNewsById(int id);
	
	public List<PartyNews> getLatest4PictureNews();
	
	public List<PartyNews> getCollegeNewsByBranch(List<Branch> branches,String queryString,int firstResult,int maxResults);

	public int getCollegeNewsCount(List<Branch> branches,String queryString);
}
